/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_Page_TotalScoreVO_ } from '../models/BaseResponse_Page_TotalScoreVO_';
import type { BaseResponse_Page_UserScoreVO_ } from '../models/BaseResponse_Page_UserScoreVO_';
import type { UserScoreAddRequest } from '../models/UserScoreAddRequest';
import type { UserScoreQueryRequest } from '../models/UserScoreQueryRequest';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class UserScoreControllerService {

    /**
     * doSubmit
     * @param userScoreAddRequest userScoreAddRequest
     * @returns BaseResponse_long_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static doSubmitUsingPost2(
userScoreAddRequest: UserScoreAddRequest,
): CancelablePromise<BaseResponse_long_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/user_score/',
            body: userScoreAddRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listUserScoreByPage
     * @param userScoreQueryRequest userScoreQueryRequest
     * @returns BaseResponse_Page_UserScoreVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listUserScoreByPageUsingPost(
userScoreQueryRequest: UserScoreQueryRequest,
): CancelablePromise<BaseResponse_Page_UserScoreVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/user_score/list/page',
            body: userScoreQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listTotalScoreByPage
     * @param userScoreQueryRequest userScoreQueryRequest
     * @returns BaseResponse_Page_TotalScoreVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listTotalScoreByPageUsingPost(
userScoreQueryRequest: UserScoreQueryRequest,
): CancelablePromise<BaseResponse_Page_TotalScoreVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/user_score/list/total_score',
            body: userScoreQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
